package com.corechina.apex_osswords.domain.dao;

import com.corechina.apex_osswords.domain.entity.CoreEquipmentCheckResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 巡查设备结果表 Mapper 接口
 * </p>
 *
 * @author cc
 * @since 2023-03-09
 */
@Component
public interface CoreEquipmentCheckResultMapper extends BaseMapper<CoreEquipmentCheckResult> {

    @Select("select * from core_equipment_check_result where polling_eq_id = #{eqId}")
    List<CoreEquipmentCheckResult> getListByEqId(@Param("eqId") Integer eqId);

}
